<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');

    $router->get('/users/import', 'UserController@importView');
    $router->post('/users/import', 'UserController@import');
    $router->resource('users', UserController::class);
    $router->resource('group', GroupController::class);
    $router->resource('banner', BannerController::class);
    $router->resource('category', CategoryController::class);


    $router->resource('message', MessageController::class);

    $router->resource('about', AboutController::class);

    $router->resource('service-processes', ServiceProcessController::class);

    $router->resource('cases', CasesController::class);
    $router->resource('styles', StyleController::class);

    $router->resource('teams', TeamController::class);
    $router->resource('team-categories', TeamCategoryController::class);

    $router->resource('news', NewsController::class);

    $router->resource('news-cateogrys', NewsCategoryController::class);

    $router->resource('apply', ApplyController::class);

    $router->resource('pages', PageController::class);

    $router->resource('jobs', JobController::class);

    $router->resource('partners', PartnerController::class);
});
